package data.obj;

public class BonusLine {

	protected int temp;
	protected int pot;
	protected double devPt;
	protected double ppt;

	protected int bonusNormal;
	protected int bonusRace;
	protected int bonusSpecial1;
	protected int bonusSpecial2;
	protected int bonusSpecial3;
	protected int total;
	
	
	
	public BonusLine(int temp, int pot, double devPt, double ppt,
			int bonusNormal, int bonusRace, int bonusSpecial1,
			int bonusSpecial2, int bonusSpecial3) {
		super();
		this.temp = temp;
		this.pot = pot;
		this.devPt = devPt;
		this.ppt = ppt;
		this.bonusNormal = bonusNormal;
		this.bonusRace = bonusRace;
		this.bonusSpecial1 = bonusSpecial1;
		this.bonusSpecial2 = bonusSpecial2;
		this.bonusSpecial3 = bonusSpecial3;
		calculateTotal();
	}
	private void calculateTotal() {
		total=bonusNormal+bonusRace+bonusSpecial1+bonusSpecial2+bonusSpecial3;
		
	}
	public int getTemp() {
		return temp;
	}
	public void setTemp(int temp) {
		this.temp = temp;
	}
	public int getPot() {
		return pot;
	}
	public void setPot(int pot) {
		this.pot = pot;
	}
	public double getDevPt() {
		return devPt;
	}
	public void setDevPt(double devPt) {
		this.devPt = devPt;
	}
	public double getPpt() {
		return ppt;
	}
	public void setPpt(double ppt) {
		this.ppt = ppt;
	}
	public int getBonusNormal() {
		return bonusNormal;
	}
	public void setBonusNormal(int bonusNormal) {
		this.bonusNormal = bonusNormal;
		calculateTotal();
	}
	public int getBonusRace() {
		return bonusRace;
	}
	public void setBonusRace(int bonusRace) {
		this.bonusRace = bonusRace;
		calculateTotal();
	}
	public int getBonusSpecial1() {
		return bonusSpecial1;
	}
	public void setBonusSpecial1(int bonusSpecial1) {
		this.bonusSpecial1 = bonusSpecial1;
		calculateTotal();
	}
	public int getBonusSpecial2() {
		return bonusSpecial2;
	}
	public void setBonusSpecial2(int bonusSpecial2) {
		this.bonusSpecial2 = bonusSpecial2;
		calculateTotal();
	}
	public int getBonusSpecial3() {
		return bonusSpecial3;
	}
	public void setBonusSpecial3(int bonusSpecial3) {
		this.bonusSpecial3 = bonusSpecial3;
		calculateTotal();
	}
	public int getTotal() {
		return total;
	}
	
	
	
}
